improve spec, add libs, implement anaAgent registration.