update to QAL usage of Qlearning