better addmap script