added hook function in fw_core