added checking in root class in olredux