added file parsing.