plchandler polling inputc and output