new hook for 4.0 compatibility

thanks @brasofilo!
Oops. The other change.
add github link to readme