silence annoying deprecation warnings while keeping backwards compatability