debug stuff and more