added a shared mem table and a few functions