convert hash to filter plugin