adding some more logging functionality