almost working RL