first (unworking) version of replace
working? needs testing
fixed sds bug that was being hidden by try/except
first working version; output files still significantly larger