further edited logger