supporting opening existing files