log deprecation warning in old implementation