added code for the logs