replace `require` with `library`; follows best practice