first design for the shared memory resolver

looks horrible, but at least it compiles. i hope i can make something nicer later.