init batalin algorithm