cleaned up enqueue/dequeue in the file side