parses parameters from file