in-app request logging and better error handling