move handler methods into Receiver class