updating to support passing destination and path to pipes