improved dbg messages for id and struct