made $quit safer