debugging and test scripts