remove deprecation warnings & deprecate lib