avoid race condition between queues

queues operate independently and do not guarantee ordering between
them. a cleaner way might be to find a way to use one queue, but this
works