fix demo config error; improve demo