mockery & cleanups