support for custom 404 handler