abstracted out a part of the setup state