Reorganized plugins source code