shared ptr in netgen