added some modesetting