fixed export problem in main