working on library back end