use Rex.sleep instead of select