changed from manually editing path to correctly calling the library to allow easier testing