check if exports defined
export to global namespace if needed