adding data logger stuff