refactoring isurur's inbound implementation