updated network I/O impl. so it can handle nested requests