parsing is mostly correct-still needs file output