improve debugging messages for #163