fix loading of plugins