moved config related stuff to client.config