started working on __refactorExportCode