changed qbets package API to return ints