better error message
more docs