changing repository into a library