documented hooks and fixed extending models