first define strategy as named function then export so that can call util.inherits