avoid SynchronizedMap since it is deprecated in Scala 2.11