initial copy from RUNJEEVES