migrate a bunch of old template tags