fix downloading and installation; checked on linux and windows