fix file parsing
minor changes