match upstream file