add rl to requirements
refactor