improved id translation, fixed pipe id translation