added -o flag so we dont overwrite output file in case of error