refactors the build to easily switch between local and published paradise