added main and stuff to queuedserver