added some logging for potential bug