add compact protocol invoke code