get rid of custom memcpy funcs