add startup and teardown