unified code for modules, templates, plugins