improved logging interface for marshaling, added sorted sets