finename setting, ini file, and some bugfix