My misc debug and test scripts