check config file before parsing