added debug stuff