improvement: ensure no memory problem while opening json file configuration