added open and close. Uncertain if pagefile 0 can be used to store index info