put SQL filter processing after content envelope, to fix dependency issues