added a memory file , work in progress