clearing code, attempt to write ConfigParser func (failed), using old method of config parsing