iadded more debug stuff