added logger setup and send() method