apparently the proper way to copy shared objects