script for writing QIE shift registers