added template and iplant treatment derivation