Unified all the filter modifying functions into apply_filter
merged teddys changes from forever ago b/c i am an idiot