beginning export code