tweak copy_to_public functionality