call function in its respective case in eth_handler()