Revert "cleaning up indentations in export code"

This reverts commit 96ceff5994e3eb5c49f56a5d510837f7e0b45cb3.