starting adding logging