remove some more calls to memcpy*