found issue where output files can fail (leaving note now, will fix later)