add some logging also