improve settings from ini; add write to file