various cleanups of interface to server and and also added scrolling.