fix for new listqueues and support for sendmessage with delayseconds