back to shared pointer for the attribute record; can cause a crash otherwise. not completely understood and  probably needs to investigated in the future. Sharedpointer is ok though but I like to use unique pointer were possible/reasonable.