add function to check export