trade merging prototype