debugging pipe script