move templates from rootpy to here