add function: copy messages