prevent duplicate hooks