scripts for bt debugging