use official rangy library. (reverted from commit c319c5807eb56fcbf32ac07ddd44f310ee4c8aa2)
intermiedate version for selection.