begun adding error handling on csv files