added file archiving and 404 handler to the base handler