doc
better config validation