network input handler implementation