debug scripts set up