utility class to store files to external storage