use this class on loading plugin definition
use metrics
fixed example