scheduler: improve config control
scheduler: some constants transformed to config options