template moved in front of registry