copy to buffer

Signed-off-by: Andrew Miller <amiller@dappervision.com>