making the cli pause and resume at a global level