update head filters; update primary template