adding 404 and 500 and changes in base settings