now file dialog works pretty fine