parses config file