added incomplete  factory_read_nativec_file function