change the method to use the extenal library.