more stuff for mapping between buffered out and buffered in