modified how stuff works (shared memory with gui)