server: improve debugging in various objects