hook+trace: adds hookid and type