fix two warnings, protocol not implemented.