change all uses of ResourceBuff to ResBuf