can you change this to use sparkConf.getBoolean?