migrates server startup to "environment"