copy and file wrangling for offline mode