add basic hook