add ScalerLoc and improve defn of global vars
update Sept 23