hacky shit to fix sphinx bugs