started adding logging