switch to debug as 500 error