fix errors so that I can build docs with no warning (except for figs)