add code
add code
change chSetup to mainThread
add isStuck() and format