update api file
update pickle support

no more extra instance members