https://ryancollins.org/2013/10/15/replacing-the-library/
Replacing the library