corrections to deploy and rake file