change the has_nonres flag to be more human readable