made access map a bit more robust to multiple keys and junk