fixed code for server_deploy