restore clientfactory, needed for some reason??
restore buildui