updated dns and env
added start/stop function