convert YES to 1 in REST output