better overlay and window definitions