finish AppInit()