better error for bad visibility
refs