converted logger to send data to imp