Update RL from qiu_tie

refined, seems good enough