add code for arbitrary x*y views settings