adding in more logging