hooks subscribe to edge events