added 2 functions, one for single file export and second for folder export to be easy to call from other modules