complete parser and correct file division