adding batch capability