initial ver
runs correctly from command line (parse no longer fails due to newlines)