renamed Main to QueueManager maybe needs adaption in GUI