bugfix, return err when readConf() failed