update reset.py for new api