updates to the build system and an export script