adapted build chain to link hooks