local doc gen sort of works