save last used dir
dialogs refactoring
batch processing bugfix