added helper scripts for word alignment