improved plugin reloading