moving file parsing out to helper classes