added 'pause' and resume' commands