added block/nonblocking to master