added feature baches functionality