update to use mwtemplates