update R method and error..handler