updates to lib