message queueing code on the hive