getting queue working