add commands to setup.py
terminate after create or restore