added some info and made sockets nonblocking