generate hash values; send 404's if hash not found; index lookup fields