storeFile moved to record.js