added some debug scripts