fix bugs + script to download latest upstream release