added inbox controller, refactored inbound parsing