deal with warnings