various fixes, added missing implementations of Protocolv1.
various fixes.