migrated from shntool to dd due to speed and corrections issue.