is this used for the doc only or also elsewhere? could we move it to the doc command?