fixed type def of composte_refac.
added callback attributes.
fixed type errors.