'xattr' - fixed setting attrs and cleanup