changing to use event type to detect transfer complete