moved settings to ini file, improved csv_prepare