this should be done as part of setup and teardown