improved uptext detection with proper methods