added reading of boolean variables