another backup of file parser code