added opts.maxonscreen