adding cstring to places that need memcpy