bug fix, poll works now
recv functions can now be stopped with ctrl -c