config fix in main file
critical fixes in main file