added some code to sending side tasks