handle boolean attributes