implement inbound handler