simplified implementation of :file-desc header argument