added added advanced quitting