[enhancement] added event handling, status reporting and compacting installPlugin call