adding debug stuff