better docs handling