needed main function in queued server