java serializers cleanups