qlearning and other modifications