written code for dpduk courier & refactored existing code