added some boolean switches in query plan learner