scripts for testing and debugging