add bash emit support