added some function for cml4woo addon