fixing download for server