diff --git a/cmd/ipfs2/init.go b/cmd/ipfs2/init.go
index eacaf6bcf06e1db3c4b661e65c756e48e77ad02c..898b5411ed53e67470729788e7c58d394c4346b3 100644
--- a/cmd/ipfs2/init.go
+++ b/cmd/ipfs2/init.go
@@ -51,7 +51,7 @@ var initCmd = &cmds.Command{
 			nBitsForKeypair = 4096
 		}
 
-		err := foo(res, req, dspath, force, nBitsForKeypair)
+		err := foo(res, req.Context().ConfigRoot, dspath, force, nBitsForKeypair)
 		if err != nil {
 			res.SetError(err, cmds.ErrNormal)
 			return
@@ -59,11 +59,10 @@ var initCmd = &cmds.Command{
 	},
 }
 
-func foo(res cmds.Response, req cmds.Request, dspath string, force bool, nBitsForKeypair int) error {
-	ctx := req.Context()
+func foo(res cmds.Response, configRoot string, dspath string, force bool, nBitsForKeypair int) error {
 
-	u.POut("initializing ipfs node at %s\n", ctx.ConfigRoot)
-	filename, err := config.Filename(ctx.ConfigRoot)
+	u.POut("initializing ipfs node at %s\n", configRoot)
+	filename, err := config.Filename(configRoot)
 	if err != nil {
 		return errors.New("Couldn't get home directory path")
 	}