implemented config file parsing