add crvInRange function to core/cmd.py