add text hooks to attributes