using lazyflow's warn_deprecated instead of logging