added error reporting to production env temporarity