use exit 0 to quit app