path support, __getstate__ suppot