use setConfig method in loadConfig method
enable to specify hostname