fixed deprecated decorator to allow sphinx to see deprecated methods