attribute hooks

Signed-off-by: themuntdregger <themuntdregger@gmail.com>