added support for crefrange and friends