add code to deal with xla file