small RES bugs