started adding logging to the solution