updated api to use new restable interface