refactor to support lib calls directly
Adding library support for Telemetry calls, not just the daemon