making usage filter a generic hash