updated library to work with repositories