better window and placeholder support