changed some package:::function references to getS3method calls