factored out stuff that has to be run for an appliance