add support for staticpadtemplates