use compat value for basestring