slf_attr_on and off are less portable