Loading of cfg works fine but need to fix some things