adding deprecation warnings
reflecting api changes