added more logging