add crude hacks to get this working on my machine