added plug-in functions