change variable names & modify error handling in config parsing