replace :from with :as.