restore logger functionality