impruveI improved the detection of collisions and corrected some errors when uploading files