fix config task

* in its own module for now
* made debug a main option instead of two (server and worker) options