add quit method