improve docs generation