added debug tools