added queues to lift, foldp