[PATCH v2 1/4] add essential functions to read .config file and parse privatePath