moved inbound process logic to separate class