modify LRSAG to avoid map use