fixes some old stuff which didn't compile on github