factored out common part of workstation and ISO builds