add write attr extension