to upload and keep track of errors. Does not work