fixed deprecation messages.