exporting funciton now enhanced (set attributes and registry now exported in both direction)