added #persistent to fix quick exit issues