convert cflog to a global function
update changelog