add reflection to get char array