upgrade to pipes 4