actually initializing max_displays might be a good idea