avoid thread unsafe access to map structures