fixed quit exit & disponse functions