added some debug functions