hook up events (#44)