amended code for variables to parse values from configuration file