debugging scripts