get rid of extra path set in app
fix error code for 404 handler