correctly turn off warnings