events -> hooks. better syntax, same concept