make NodePickler picklable