add command line option (path, P)
handle config file error