more hooks to handle pipes