add a call back mechanism to process network requests