putLibrary should return previous library