updated for new frog which expects EOT