files can be null
return result object from export method