add hooks for expansion