updating OC api for 1.7