verified with diff that this produces *exact* same file i had manually