make this check a bit more liberal