added a "before:addToFramework" trigger
added some "before" triggers