server converted to library; interface created