got parsing working, not beautiful, but there it is