code cleanup, allow 0 workers for console or single-process preference