solved bug#12 by moving yes reset into the nocase function