adding 500 error code override