modified to remove deprecated function usage and related warning

changes to ensure no warnings show on xcode for including Konotor