added error on pipe + callback