// make it work on single threaded servers