updated hooks for new build