complete the function to check if directories exist in config
complete funtion to test syntax of config file