revise complter to use rl