tweaked deploy for using ip and port