add agm library