removed __getstate__