prepare for in-memory files