define require for lib