add some helper methods to handle deprecation