adding some debug stuff created a while ago... will be handy