restored binary compatibility, add some logging.