added (but commented out) error text check