rename link hooks to network
add debug logging