only connect to remote services on boot if in production mode