update to v0.0.2a

1. add a test for supporting gate server
2. clean code