add decode and seriable demo