(WIP) change parser to collect var decls