corrected a small bug (libray instead of require)