add cstring for use of memcpy