ref: move icp serial excnhage to the lib