messed everything up, going back to the haskell prototype. this is probably abandoned now, but it was fun