p_m quick fix, template adding