add deleteproto and change sproto_decode returns