move function to Ethna.php