added error request logging