documentation
better error message
bug fix
better message
bug fix