refactoring plugin loade/storage