adding logging on run