docs and errors