api key, api port settings and command line options
new scheduler with graceful death of threads that fail
TODO: use new scheduler init function when changing intervals