added check for result & request codes