rebuild for shell's output path