bit of code cleanup

- add logging