moved hooks from app to core
moved hooks from app to core