added a few functions to the queue, seems to be buggy though