moving to logger