fixed some error reporting for oai_target