added logger stuff