subst --> template
fixed up for js9-beta14
forward compatible fitsy