add some deprecation annotations