replace quit with exit