improved docs logic