added max_worker_age and fixed queueing bug