work so far on the file parser. must be optimized at home