add more checks for config