separate logger and config load from main file