added default filters to environment
added missing return in filter method