switched over to base rsplit and rsearch