made RST->insert use baseclass, resolved typedef inheritence