split parser and fileparser