start to add some logging functionality