temp hack for handling arrays of ptrs