       # handles communications between bot and arduino.
       supervisor(Farmbot.Serial.Supervisor, [], restart: :permanent),
       # Watches the images directory and uploads them.
-      worker(Farmbot.ImageWatcher, [], restart: :permanent)]
-    ] |> List.flatten
+      worker(Farmbot.ImageWatcher, [], restart: :permanent)
+    ]
     opts = [strategy: :one_for_one]
     supervise(children, opts)
   end


  def init(_args) do
    children = [
      maybe_debug_logger() | [
      supervisor(Registry, [:duplicate,  Farmbot.Registry]),
      # System specifics.
      supervisor(FBSYS, [], restart: :permanent),

      if File.exists?(file), do: :ok, else: {:error, :no_pub_file}
    end
  else

    defp setup_nerves_fw do
      Logger.info ">> Disabling firmware signing!"
      Application.put_env(:nerves_firmware, :pub_key_path, nil)
      :ok
    end

  end
end
