thread-safe map and library mode for command get