added api for jsmockitpo