move away from nsmaptable, use internal implementation, slower right now, still very rough