breaks functionality out into separate scripts and adds ability to re-pack packages for publishing