working on rough parser