make server startup a bit more reliable