fixing settings and add 500 error for testing