improve queue methods
Merge pull request #12 from oorion/improve_queue_methods

improve queue methods