making --doc work