better error for bad visibility

fixes #107