added logger to connection