need to initialize these after the window size is set
more cleanups