wrote scripts for q7 and q8