add version number to the exported object if applicable