changed how gary is run so the env vars are loaded and restarting is possible.