wip: integrates parser and reader