complete download functionalities