fixed export code