code updates: use strict, preload factory, constant globals