using node-hook to hook into node require loader