fix deprecation notices