working on some logging