   case DropPath
 }
 
-func outputFileName(component: String, index: Int, fileDescriptor: FileDescriptor) -> String {
-  var ext : String
-  if index == 0 {
-    ext = "." + component + ".pb.swift"
-  } else {
-    ext = "\(index)." + component + ".pb.swift"
-  }
+var outputNamingOption : OutputNaming = .FullPath // temporarily hard-coded
+
+func outputFileName(component: String, fileDescriptor: FileDescriptor) -> String {
+  let ext = "." + component + ".pb.swift"
   let pathParts = splitPath(pathname: fileDescriptor.name)
-  let outputNamingOption = OutputNaming.FullPath // temporarily hard-coded
   switch outputNamingOption {
   case .FullPath:
     return pathParts.dir + pathParts.base + ext

  }
}

func main() throws {

  // initialize template engine and add custom filters

  // Build the SwiftProtobufPluginLibrary model of the plugin input
  let descriptorSet = DescriptorSet(protos: request.protoFile)

  // process each .proto file separately
  for fileDescriptor in descriptorSet.files {

    if fileDescriptor.services.count > 0 {
      // a package declaration is required for file containing service(s)
