reformat file parser
refactored file parser