window, logging stuff