added functionality to logger