refactor dow.os.script to use dow.core :as core