add isPipeRegistered for mods to check if pipe-id already taken.