Adapt file store
Prepare IORef