refactor pipeline to support confirmation
add confirmation when overwriting existing files