added some debug stuff