get rid of dependencies on predefined display modes