final version of the post-export script.