add utils in cd_hook