fix bug in deprication call
fix bug in deprication call and add logging to setup