fix bug;
adding config file;
fix critical bug that causes failed initializations;