first pass script to write datacards