adding logging to the app