made receive and send methods into separate object controlled by service