server with non blocking