implemented new plugin's loader; refactoring