merging of btc files with different references