update plugins definition/state and dependencies