simplify file parser