agent lib fixed