kind of trying to structure parser as module. not very successful yet