renamed screenIndex to clientScreenIndex to make it more clear.