handle pointers to structs properly again