add index/404 via pattern matching