misc tw scripts