improved attrib updating