implementing donwload for init and patch
merge conflicts