imp savemessage
fix panic error and add config.json file