cleanup of prime-thread stuff
began working on swap-chain creation