logging added for failed scenarios