add a basic before filter