add ctx to body filter