add batch function and hiberate interaction