simplified code in deployer