file choice issues fixed in spec plotting functions