conversion v8 -> map