added binary hook