add support to read config file.