merging local and remote attributes