fixed some deprecation notices