[enh] rewrote importpwd - untested! experimental.