move br2entry map outside the block