adds debug infomation