lookup now uses locks to avoid shared memory crashes. Performance has been minimally effected because of this