load plugins from functions as well as objects