add a bunch of parsing code