added inject hook