small changes in spec_utils