update for user pi
fix to change current directory to output directory