refactor the deploy-project engine