added ERROR logs