improved error-detection for the '^' prefix