add routes for resources and 404