added before filter, helpers, hit or stay functionality