updated logger functionality