change addFilter to setFilter, throw if not a function
change addTag to setTag, throw if parse or compile not a function