handle duplicate files and another bug fix
fixed file sending queueing and other bugs