refactor: removed nearly all usages (except maven-builds) of the deprecated methods and changed to the new way;