totally untested, i'm sure I messed up a character or two. I'm sure there will be opinions. Pull requests welcome!