new file parse logic