added ruby api