Open windows on refs / argv
Miscellaneous fixes