newFactory works locally, but newInstance seems to be the better option