complete some export, have problems in type error detection. stop for x265 learning