need to dump to buffer