make exec for hooks