fix sim file parsing