adding libagent