updated library, test working