smartptrs for master