fixing mess-up with plugin context after moving load_plugins to sample manager