set the hxml appropriately when nmml is found
misc reformat