start porting to single-file version of lua scripts; implement one test for queues function