add helpful error message and remove a compatibility warning.