finally got parsing to work