first draft of queue server