Api updated for libraries