setup and teardown hooks for tape