add 'headers' and allow raw 'where' to _filter