fixed the output path option