update_config to scheduler, refactors