fix fmt and load config file in the HOME path