fixed spelling errors in configs
improved conditions