got first version of parser working