change to newInstance() to be consistent with the other api.