add load config and scan files for server