add save as stream and load as a stream