proper download function added and making renaming moving to the same