create external file handle first