remove dead code
worker_params moved to broker_context, added main_loop