get rid of some reprecation warnings