move hash handler before cache