MOD remove some public definition and use encoding/json