add .gitignore
check rpc return code at client side