added file parsing