add config check

add config file check. (parse error and config does not exist)