issue with nonblocking server code I believe