fix_warnings
add test for cancel
pause before canceling