start adding logging