debug export errors and handle it

Try to fix export errors and watch where is the source