adding some logging