updated debug stuff