added ag lib