make get_address aware of map lengths