load config from ini, first run bug fixes