add AppMsg lib, fix init issue