detach pipe works correctly :)