using 'mock' to fix readthedocs build