refine when hook fires, update info.xml