update require to library