pass text to the copy callback, update docs