fix non-blocking so that it actually doesn't block!