added better error handling for textv