manage the lifecycle of machine