fix readthedocs compatibility