memory queue working, setting up server functionality