fixed where we do not map the name of queues correctly to function names