commented out save2outBuff, needs to be refactored