reply header creation moved away from command
producer and consumer implemented