use setup and teardown for this, that is what they are for