read into char pointer array instead