moved client stuff to main index