scheduler
added env variables and fix auth token bug