scripts/hooks functionality added