refactored helf function a bit
Refactored plugin loading mechanism