temp fix to handle slices in structs