ugly-ass mocking for RTD