adding some debug stuff