update logger and getresourcefolder was muved to preinit event