added a logger