reimplemented agents as clients, added reltype and from sugars (progress #109)